<div class="row">
    <!-- left column -->
    <div class="col-md-12">
        <!-- general form elements -->
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title"><?php echo isset($this->data['Flavor']['id']) && $this->data['Flavor']['id'] != '' ? 'Edit' : 'Add'; ?>&nbsp;Transcode</h3>
                <div class="box-tools pull-right">
                    <?php echo $this->Html->link('Back',array('controller'=>'utility','action'=>'flavor'),array('class'=>'btn btn-default btn-sm')); ?>
                </div>
            </div><!-- /.box-header -->
            <!-- form start -->
            <?php echo $this->Form->create(null, array('url' => array('controller' => 'utility', 'action' => 'flavoropr'))); ?>
            <?php echo $this->Form->input('id',array('type'=>'hidden')); ?>
                <div class="box-body">
                    <div class="row">
                        <div class="form-group col-lg-3">
                            <?php echo $this->Form->input('flavor_name',array('class'=>'form-control','placeholder'=>'Flavor Name','label'=>'Flavor Name')); ?>
                        </div>
                        <div class="form-group col-lg-3">
                            <?php echo $this->Form->input('device_name',array('options'=>$device,'class'=>'form-control','placeholder'=>'Device','label'=>'Device')); ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group col-lg-3">
                            <?php echo $this->Form->input('bitrate_type',array('class'=>'form-control','placeholder'=>'Bitrate Type','label'=>'Bitrate Type')); ?>
                        </div>
                        <div class="form-group col-lg-3">
                            <?php echo $this->Form->input('bitrate',array('class'=>'form-control','placeholder'=>'Bitrate','label'=>'Bitrate')); ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group col-lg-3">
                            <label for="code">Video Bitrate</label>&nbsp;<a href="javascript:void(0)" data-toggle="tooltip" data-placement="right" title="The average encoding rate for the video, in kilobits per second (kbps). For VBR-encoded videos, the encoding rate at any point may vary considerably from the average rate. Higher bitrates require both higher bandwidth and more CPU power from the viewer's device. The bitrate must be between 96 and 5000 kbps.">(?)</a>
                            <?php echo $this->Form->input('video_bitrate',array('class'=>'form-control','placeholder'=>'Video Bitrate','label'=>false)); ?>
                        </div>
                        <div class="form-group col-lg-3">
                            <label for="code">Audio Bitrate</label>&nbsp;<a href="javascript:void(0)" data-toggle="tooltip" data-placement="right" title="The average encoding rate for the audio, in kilobits per second (kbps). Video Cloud supports audio bitrates from 8 to 320 kbps.">(?)</a>
                            <?php echo $this->Form->input('audio_bitrate',array('class'=>'form-control','placeholder'=>'Audio Bitrate','label'=>false)); ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group col-lg-3">
                            <?php echo $this->Form->input('width',array('class'=>'form-control','placeholder'=>'Width','label'=>'Width')); ?>
                        </div>
                        <div class="form-group col-lg-3">
                            <?php echo $this->Form->input('height',array('class'=>'form-control','placeholder'=>'Height','label'=>'Height')); ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group col-lg-3">
                            <?php echo $this->Form->input('frame_rate',array('class'=>'form-control','placeholder'=>'Frame Rate (FPS)','label'=>'Frame Rate (FPS)')); ?>
                        </div>
                        <div class="form-group col-lg-3">
                            <?php echo $this->Form->input('keyframe_rate',array('class'=>'form-control','placeholder'=>'Keyframe Rate','label'=>'Keyframe Rate')); ?>
                        </div>
                    </div>
                </div><!-- /.box-body -->
                <div class="box-footer">
                    <button type="submit" class="btn btn-primary">Submit</button>
                    <?php echo $this->Html->link('Cancel',array('controller'=>'utility','action'=>'flavor'),array('class'=>'btn btn-default')); ?>
                </div>
            <?php echo $this->Form->end(); ?>
        </div><!-- /.box -->
    </div><!--/.col (left) -->
</div>